package com.cmc.cloud.cmclink.doc.api.document.rep.manifestrep.manifest;

import com.cmes.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static com.cmes.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
 * 舱单主分页 Request VO
 *
 * @author chenzheng
 */
@Schema(description = "管理后台 - 舱单主分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class ManifestPageReqVO extends PageParam {

    @Schema(description = "订舱号")
    private String bookingNo;

    @Schema(description = "客户参考号")
    private String referenceNo;

    @Schema(description = "舱单编号")
    private String manifestNo;

    @Schema(description = "订舱船名 line 第一段")
    private String bookingVessel;

    @Schema(description = "订舱航次 line 第一段")
    private String bookingVoyage;

    @Schema(description = "是否确认", example = "2")
    private String confirmStatus;

    @Schema(description = "主舱单")
    private String masterMfNo;

    @Schema(description = "接货地")
    private String porCode;

    @Schema(description = "装货港")
    private String polCode;

    @Schema(description = "卸货港")
    private String podCode;

    @Schema(description = "目的地")
    private String delCode;

    @Schema(description = "订舱人代码")
    private String bookingParty;

    @Schema(description = "箱状态", example = "2")
    private String cntrStatus;

    @Schema(description = "箱主代码")
    private String cntrOwner;

    @Schema(description = "舱位代码")
    private String spaceOwner;

    @Schema(description = "运输条款")
    private String shippingTerm;

    @Schema(description = "一级代理代码")
    private String topAgent;

    @Schema(description = "付费条款")
    private String payment;

    @Schema(description = "接货地 描述")
    private String porDesc;

    @Schema(description = "装货港 描述")
    private String polDesc;

    @Schema(description = "卸货港 描述")
    private String podDesc;

    @Schema(description = "目的地 描述")
    private String delDesc;

    @Schema(description = "数据来源")
    private String dataSource;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "创建人")
    private String creator;
}
